{% extends "./base.html" %}
{% block title %}Search{% endblock %}
{% block content %}
<style type="text/css">
	#messages .conversation
	{
		border-color: black;
		border-width: 1px;
		border-style: solid;
		border-radius: 15px;
	}
</style>
<div id="messages">
	<a href="." style="color:green"> Back to inbox </a></p><br /><br />
	{% for m in messages %}
		<div class="conversation">
			<p style="color:red">{{ m.sender }} &#126;&#62; {{ m.recipient }} &#64; {{ m.datetime }}</p>
			<p>{{ m.content }}</p>
		</div>
		<br />
	{% endfor %}
	<br />
	<br />
	<div id="reply_box">
		<form action="" method="post">
			<textarea row="10" col="50" name="message"></textarea>
			<input type="hidden" name="token" value="{{ token }}" />
			<input type="submit" value="Reply" />
		</form>
	</div>
</div>
{% endblock %}